package com.snopy.designPattern.behavior.template;

import java.io.File;

/**
 * @author snopy
 * @version 1.0.0
 * @classname DataMiner
 * @description
 * @email 77912204@qq.com
 * @date 2022/11/21 7:18
 */
public abstract class DataMiner {
    File file;
    public abstract File openFile(String path);
    public abstract void extractData(File file);
    public abstract void closeFile(File file);
    public void mine(String path){
        file = openFile(path);
        extractData(file);
    }
}
